<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html;charset="utf-8"/>
<title>Congratulations</title>
<link href="css/congra.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '100796913364413', // App ID
      //channelURL : 'http://facebookgewinner.fa.funpic.de',
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      oauth      : true, // enable OAuth 2.0
      xfbml      : true  // parse XFBML
    });

    // Additional initialization code here
  };

  // Load the SDK Asynchronously
  (function(d){
     var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     d.getElementsByTagName('head')[0].appendChild(js);
   }(document));
</script>
<?php
	
	echo "<div id=\"menuder\">";
	echo "<div id=\"imagen\">";
//echo "<a target = \"_blank\" href=\"http://www.audi.de\" class=\"imagenizq\"><img src=\"images/audi.jpg\" width=\"302\" height=\"180\" /></a>";
	echo "<img src=\"images/iphone 4scong.jpg\">";
	echo "</div>";
/*echo "<div><a name=\"fb_share\" type=\"box_count\" expr:share_url=\"data:post.url\" href=\"http://www.facebook.com/sharer.php\">Share</a><script src=\"http://static.ak.fbcdn.net/connect.php/js/FB.Share\" type=\"text/javascript\"></script>
</div>";*/

?>
<div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <input type="button" class="boton"
      onclick="sendRequestToManyRecipients(); return false;"
      value="Klicke hier zum einladen";
    />
    <input type="button" class="boton2"
      onclick="window.open('http://facebookgewinner.fa.funpic.de/congratulation2.php');"
      value="Weiter";
    />
<script>
      FB.init({
        appId  : '100796913364413',
        status : true,
        cookie : true,
        oauth: true
      });


      function sendRequestToManyRecipients() {
        FB.ui({method: 'apprequests',
          message: 'Versuch dein Glueck bei diesem kostenlosen Gewinnspiel und gewinn mit etwas Glueck ein Iphone 4s.',
        }, requestCallback);
      }
      
      function requestCallback(response) {
        // Handle callback here
      }
    </script>
</body>
</html>